package com.usian.service.impl;


import com.usian.dao.StudentMapper;
import com.usian.pojo.Student;
import com.usian.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper studentMapper;

    @Override
    public void add(Student student) {
        studentMapper.insert(student);
    }

    @Override
    public void update(Integer id) {
        studentMapper.update(id);
    }

    @Override
    public List<Student> select(Integer id) {
        return studentMapper.find(id);
    }
}
